//package com.sping_boot3.spirng_boot3.controller;
//
//import jakarta.annotation.Resource;
//import org.apache.rocketmq.spring.core.RocketMQTemplate;
//import org.springframework.web.bind.annotation.*;
//
//@RestController
//@RequestMapping("rocket")
//public class RocketController {
//
//    @Resource
//    private RocketMQTemplate rocketMQTemplate;
//
//    @GetMapping("/produce/message/{id}")
//    public String get(@PathVariable("id") Long id) {
//        rocketMQTemplate.convertAndSend("first-topic",  id+"号，可以取餐了");
//        return "消息发送成功！！";
//    }
//    @GetMapping("/produce/message/two/{id}")
//    public String getTwo(@PathVariable("id") Long id) {
//        rocketMQTemplate.convertAndSend("first-two-topic",  id+"号，可以取餐了");
//        return "消息发送成功！！";
//    }
//}
